# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


class RegionItem(scrapy.Item):
    city = scrapy.Field()
    id = scrapy.Field()
    name = scrapy.Field()


class PopItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    collection = table = 'shanghai_pop'
    city = scrapy.Field()
    id = scrapy.Field()
    name = scrapy.Field()
    tm = scrapy.Field()
    max = scrapy.Field()
    min = scrapy.Field()
    val = scrapy.Field()


class FlowItem(scrapy.Item):
    collection = table = 'shanghai_flow'
    city = scrapy.Field()
    id = scrapy.Field()
    name = scrapy.Field()
    tm = scrapy.Field()
    flow_in = scrapy.Field()
    flow_out = scrapy.Field()


class FlowAllItem(scrapy.Item):
    collection = table = 'shanghai_flow_all'
    city = scrapy.Field()
    id = scrapy.Field()
    name = scrapy.Field()
    tm = scrapy.Field()
    flow_all_in = scrapy.Field()
    flow_all_out = scrapy.Field()
